package org.example.wx.user.repository;

import org.example.wx.user.entity.WxUser;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface WxUserRepository extends JpaRepository<WxUser, Long> {
    Optional<WxUser> findByOpenId(String openId);
    Optional<WxUser> findByUsername(String username);
    boolean existsByUsername(String username);
}



